
ip1 = map(int, '84.77.95.123'.split('.'))

ip2 = map(int, '255.255.224.0'.split('.'))


ip1 = [f'{ip:b}'.rjust(8, '0') for ip in ip1]
ip2 = [f'{ip:b}'.rjust(8, '0') for ip in ip2]


print('узел =', *ip1)
print('маска =', *ip2)


# маска = 11111111 11111111 11100000 00000000
# узел =  01010100 01001101 01011111 01111011
# сеть =  01010100 01001101 01000000 00000000


# сеть =   84       77        64      0
print(int('01000000', 2))

#ответ 64